#!/usr/bin/env python
#-*- coding:UTF-8 -*-
#####################################################
# Author: Jiaion - jiaion21@gmail.com
# Last modified:  2011-03-02 11:25
# Filename:  context_process.py
#####################################################

from django.conf import settings as _settings
from django.contrib.auth.models import User

def AddContext(request):
    return {
        'settings':_settings,
        }

def AdminSwitch(request):
  Username = request.user.username
  if request.user.is_superuser :
    return {
        'SUUSER':True,
        'User':Username,
        }
  else:
    return {
        'SUUSER':False,
        'User':Username,
        }
